package com.wcs.exam.controller.api.req;

import com.wcs.exam.common.enums.LoginTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 微信授权
 *
 * @author wcs
 */
@Data
@Accessors(chain = true)
public class ApiLoginWxCodeReq implements Serializable {

    @Serial
    private static final long serialVersionUID = -2877781106821535513L;

    @Schema(description = "授权回调code值")
    private String code;

    /**
     * @see com.wcs.exam.common.enums.LoginAuthTypeEnum
     */
    @Schema(description = "授权类型，参考：LoginAuthTypeEnum")
    private Integer loginAuthType;

    /**
     * @see com.wcs.exam.common.enums.ClientTypeEnum
     */
    @Schema(description = "客户端类型，参考：ClientTypeEnum")
    private Integer clientType;

    @Schema(description = "登录方式")
    private Integer loginType = LoginTypeEnum.WX_WEB_AUTH.getCode();

    @Schema(description = "浏览器")
    private String browser;

    @Schema(description = "操作系统")
    private String os;
}
